package vn.com.demand.lux.view.contentprovider;

import java.util.List;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

import vn.com.demand.lux.model.AccountReceivableDetailBean;

public class AccountReceivableContentProvider implements IStructuredContentProvider{

	@SuppressWarnings("unchecked")
	public Object[] getElements(Object inputElement) {
		if (inputElement instanceof List) {
			List<AccountReceivableDetailBean> list = (List<AccountReceivableDetailBean>) inputElement;
			return list.toArray(new AccountReceivableDetailBean[0]);
		}
		return null;
	}

	public void dispose() {
		// TODO Auto-generated method stub
		
	}

	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
		// TODO Auto-generated method stub
		
	}

}
